←Select platform

InsertRange Method

Summary

Inserts an item into the LeadCollection<T> at the specified index.

Syntax
C#
VB
C++
public virtual void InsertRange( 
   int index, 
   IEnumerable<T> items 
) 
Public Overridable Sub InsertRange( 
   ByVal index As Integer, 
   ByVal items As IEnumerable(Of T) 
) 
public:  
   virtual void InsertRange( 
      Int32 index, 
      IEnumerable<T>^ items 
   ) 

Parameters

index The 0-based index at which items should be inserted.

items The IEnumerable<T> of objects to insert. The objects can be null for reference types.

Remarks

This method internally calls InsertItemRange, which may be overridden.

LeadCollection<T> accepts null as a valid value for reference types and allows duplicate items.

If index is equal to Count, items are added to the end of LeadCollection<T>.

This method raises the CollectionChanged event with Add action.

Requirements

Target Platforms

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly